﻿<ribbon:RibbonTab x:Class="XWord.GUI.Views.Fundamental.AppendixTabView"
			 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
			 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
			 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
			 xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
			 xmlns:shared="http://schemas.actiprosoftware.com/winfx/xaml/shared" 
			 xmlns:ribbon="http://schemas.microsoft.com/winfx/2006/xaml/presentation/ribbon"
             xmlns:cal="http://www.caliburnproject.org"
			 mc:Ignorable="d" Header="附录" 
			 d:DesignHeight="300" d:DesignWidth="300">

    <ribbon:RibbonTab Header="视图列表">
        <!--<ribbon:RibbonGallery ItemsSource="{Binding AppendixList}" x:Name="AppendixGallery" 
                              LargeVariantColumnCount="8" MediumVariantColumnCount="3" VariantBehavior="NoAutoSize"
                              cal:Message.Attach="[Event SelectedItemChanged] = [Action OpenAppendix($eventArgs.NewValue)];">
            <ribbon:RibbonGallery.PopupContent>
                <StackPanel>
                    <ribbon:PopupGallery InitialColumnCount="6"
											IsPreviewEnabled="True" IsSelectionHighlightVisible="False"
											ItemTemplate="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type ribbon:RibbonGallery}}, Path=ItemTemplate}"
											ItemsSource="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type ribbon:RibbonGallery}}, Path=ItemsSource}">
                    </ribbon:PopupGallery>
                </StackPanel>
            </ribbon:RibbonGallery.PopupContent>
            <ribbon:RibbonGallery.ItemTemplate>
                <DataTemplate>
                    <DockPanel MinWidth="100" Height="22">
                        <TextBlock Text="{Binding Name}"
                                VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="16"/>
                    </DockPanel>
                </DataTemplate>
            </ribbon:RibbonGallery.ItemTemplate>
        </ribbon:RibbonGallery>-->

    </ribbon:RibbonTab>

</ribbon:RibbonTab>
